package com.bringspring.system.permission.model.organize;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 *
 * @author 开发平台组
 * @version V1.0.0
 * @copyright 股份有限公司
 * @date 2021/3/12 15:17
 */
@Data
public class OrganizeDepartSelectorListVO implements Comparable<OrganizeDepartSelectorListVO>{
    @ApiModelProperty(value = "主键")
    private String id;
    @ApiModelProperty(value = "父主键")
    private String parentId;
    @ApiModelProperty(value = "名称")
    private String fullName;
    @ApiModelProperty(value = "图标")
    private String icon;
    @ApiModelProperty(value = "是否有下级菜单")
    private Boolean hasChildren = true;
    @ApiModelProperty(value = "状态")
    private Integer enabledMark;
    @ApiModelProperty(value = "下级菜单列表")
    private List<OrganizeDepartSelectorListVO> children;
    @JSONField(name="category")
    private String  type;
    @ApiModelProperty(value = "排序")
    private Long  sortCode;


    @Override
    public int compareTo(OrganizeDepartSelectorListVO stu) {
        long sortCode = getSortCode() - stu.getSortCode();
        return (int) sortCode;
    }

    public static void main(String[] args) {
        System.out.println((Integer.parseInt("4294967295")));

    }
}
